package com.buba.cargo.service.Impl;

import com.buba.cargo.dao.OrderFormMapper;
import com.buba.cargo.pojo.OrderForm;
import com.buba.cargo.service.OrderFormService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
@DubboService
public class OrderFormImpl implements OrderFormService {
    private OrderFormMapper orderFormMapper;
    @Autowired
    public void setOrderFormMapper(OrderFormMapper orderFormMapper) {
        this.orderFormMapper = orderFormMapper;
    }

    @Override
    public Integer addOrderForm(Map<String, Object> map) {
        return orderFormMapper.addOrderForm(map);
    }

    @Override
    public Long selOrderFormCount(Map<String, Object> map) {
        return orderFormMapper.selOrderFormCount(map);
    }

    @Override
    public List<OrderForm> selOrderForm(Map<String, Object> map) {
        return orderFormMapper.selOrderForm(map);
    }

    @Override
    public Integer updOrderFormByshenhe(Map<String, Object> map) {
        return orderFormMapper.updOrderFormByshenhe(map);
    }

    @Override
    public Integer delOrderForm(List<String> list) {
        return orderFormMapper.delOrderForm(list);
    }
}
